package levels
{
	import org.flixel.*;
	
	import states.GameState;
	import enemies.*;
	import interactions.*;
	import items.*;
	import treasures.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_9 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(MazeData.level_6);
			
			Player.spawnAt(15, 10);
			
			Tracker.lives = 1;
			Tracker.mapScore = 1000;
			Tracker.minScore = 3;
			
			addEntity(new SpeedBooster(16, 10));
			addEntity(new RockThrow(7, 12));
			addEntity(new RockThrow(7, 8));
			addEntity(new Trapdoor(7, 10));
			addEntity(new Slow(12, 4));
			addEntity(new Slow(14, 16));
			
			
			
			var t1:Teleporter = new Teleporter(14, 10);
			var t2:Teleporter = new Teleporter(14, 4);
			t1.other = t2;
			t2.other = t1;
			addEntity(t1);
			addEntity(t2);
			
			addEntity(new LootBag(16, 3));
			addEntity(new LootBag(16, 17));
			
			addEntity(new LootBag(9, 6));
			addEntity(new LootBag(9, 14));
						
			addEntity(new Robber(28, 7));
			addEntity(new Robber(28, 13));
			addEntity(new Exorcist(0, 1));
			addEntity(new Exorcist(0, 19));
			
			gameStart();
		}
	}
}